with open('China-City-List-latest.csv', 'r', encoding='utf-8') as f:
    f.readline()
    head = f.readline().split(',')
    print(len(head), head)
    minlen = [1000 for _ in range(14)]
    maxlen = [0 for _ in range(14)]
    cnt = 0
    for line in f:
        cnt += 1
        items = line.split(',')
        lens = list(map(len, items))
        for i in range(14):
            maxlen[i] = max(maxlen[i], lens[i])
            minlen[i] = min(minlen[i], lens[i])
    print(cnt)
    print(minlen)
    print(maxlen)

# output:
# 3577
# [3,  2, 2, 2,  5,  2,  5, 3,  4,  3,  5, 3,  7, 7]
# [9, 30, 6, 2, 13, 19, 32, 8, 47, 11, 15, 7, 11, 7]
